package com.martin.myjar.util;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author Martin
 * @description
 * @date 2020/10/28
 */
@Component
public class TestUtil {

    public String getNowTime(){
        Date day=new Date();
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        String format = df.format(day);

        System.out.println(format);
        return format;
    }
}
